package md.frolov.bible.model;

public class AbstractComparable implements Comparable{
	private int seqNum;
	
	public int getSeqNum(){
		return seqNum;
	}
	
	public void setSeqNum(int seq){
		this.seqNum = seq;
	}

	@Override
	public int compareTo(Object o) {
		if(!(o instanceof AbstractComparable)) return 0;
		return getSeqNum()-((AbstractComparable)o).getSeqNum();
	}
	
}
